<template>
	<div class="spinner"></div>
</template>

<script setup>

</script>

<style lang="scss" scoped>
.spinner {
	// 此处高宽可根据实际需求修改
	width: 24px;
	height: 24px;
	display: grid;
	// 高宽修改后，边框大小也要修改，否则动画会乱
	border: 3.5px solid #0000;
	border-radius: 50%;
	border-color: #dbdcef #0000;
	animation: spinner-e04l1k 1s infinite linear;
}

.spinner::before,
.spinner::after {
	content: '';
	grid-area: 1/1;
	margin: 2.2px;
	border: inherit;
	border-radius: 50%;
}

.spinner::before {
	border-color: #fb7701 #0000;
	animation: inherit;
	animation-duration: 0.5s;
	animation-direction: reverse;
}

.spinner::after {
	margin: 8.9px;
}

@keyframes spinner-e04l1k {
	100% {
		transform: rotate(1turn);
	}
}
</style>
